package org.hxyjs.entity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author 
 */
public class OrderForm implements Serializable {
    private String urno;

    private String uno;

    private String rno;

    private String uresprice;

    private Date urestime;

    private Date uresdate;

    private Restaurant restaurant;

    private User user;

    private Date uresenddate;

    String orderformitemss;

    public String getOrderformitemss() {
        return orderformitemss;
    }

    public void setOrderformitemss(String orderformitemss) {
        this.orderformitemss = orderformitemss;
    }

    private List<Orderformitem> orderformitems;

    public Date getUresendDate() {
        return uresenddate;
    }

    public void setUresendDate(Date uresenddate) {
        this.uresenddate = uresenddate;
    }

    public String getUresState() {
        return uresState;
    }

    public void setUresState(String uresState) {
        this.uresState = uresState;
    }

    private String uresState;




    public List<Orderformitem> getOrderformitems() {
        return orderformitems;
    }

    public void setOrderformitems(List<Orderformitem> orderformitems) {
        this.orderformitems = orderformitems;
    }



    public Restaurant getRestaurant() {
        return restaurant;
    }

    public void setRestaurant(Restaurant restaurant) {
        this.restaurant = restaurant;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    private static final long serialVersionUID = 1L;

    public String getUrno() {
        return urno;
    }

    public void setUrno(String urno) {
        this.urno = urno;
    }

    public String getUno() {
        return uno;
    }

    public void setUno(String uno) {
        this.uno = uno;
    }

    public String getRno() {
        return rno;
    }

    public void setRno(String rno) {
        this.rno = rno;
    }

    public String getUresprice() {
        return uresprice;
    }

    public void setUresprice(String uresprice) {
        this.uresprice = uresprice;
    }

    public Date getUrestime() {
        return urestime;
    }

    public void setUrestime(Date urestime) {
        this.urestime = urestime;
    }

    public Date getUresdate() {
        return uresdate;
    }

    public void setUresdate(Date uresdate) {
        this.uresdate = uresdate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderForm other = (OrderForm) that;
        return (this.getUrno() == null ? other.getUrno() == null : this.getUrno().equals(other.getUrno()))
            && (this.getUno() == null ? other.getUno() == null : this.getUno().equals(other.getUno()))
            && (this.getRno() == null ? other.getRno() == null : this.getRno().equals(other.getRno()))
            && (this.getUresprice() == null ? other.getUresprice() == null : this.getUresprice().equals(other.getUresprice()))
            && (this.getUrestime() == null ? other.getUrestime() == null : this.getUrestime().equals(other.getUrestime()))
            && (this.getUresdate() == null ? other.getUresdate() == null : this.getUresdate().equals(other.getUresdate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUrno() == null) ? 0 : getUrno().hashCode());
        result = prime * result + ((getUno() == null) ? 0 : getUno().hashCode());
        result = prime * result + ((getRno() == null) ? 0 : getRno().hashCode());
        result = prime * result + ((getUresprice() == null) ? 0 : getUresprice().hashCode());
        result = prime * result + ((getUrestime() == null) ? 0 : getUrestime().hashCode());
        result = prime * result + ((getUresdate() == null) ? 0 : getUresdate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "OrderForm{" +
                "urno='" + urno + '\'' +
                ", uno='" + uno + '\'' +
                ", rno='" + rno + '\'' +
                ", uresprice='" + uresprice + '\'' +
                ", urestime=" + urestime +
                ", uresdate=" + uresdate +
                ", restaurant=" + restaurant +
                ", user=" + user +
                ", uresenddate=" + uresenddate +
                ", orderformitemss='" + orderformitemss + '\'' +
                ", orderformitems=" + orderformitems +
                ", uresState='" + uresState + '\'' +
                '}';
    }
}